<template>
<div class="user">
    <div class="operation-wrap">
      <p> {{$t('plus.note_recent_activity')}}</p>
      <p> {{$t('plus.note_formid_validity')}}</p>
    </div>
    <div class="table-wrap">
      <template>
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="article_id" :label="$t('plus.user_id')" width="180"> </el-table-column>
          <el-table-column prop="article_title" :label="$t('plus.user_avatar')"></el-table-column>
          <el-table-column prop="address" :label="$t('plus.user_nickname')"></el-table-column>
          <el-table-column prop="category.name" :label="$t('plus.formid_count')" width="180"></el-table-column>
          <el-table-column prop="virtual_views" :label="$t('plus.register_time')" width="180"></el-table-column>
          <el-table-column prop="name" :label="$t('plus.action')" width="150">
            <template  #default="scope">
              <el-button @click="editArticle(scope.row)" type="text" size="small">{{$t('plus.edit')}}</el-button>
              <el-button @click="deleteArticle(scope.row)" type="text" size="small">{{$t('plus.delete')}}</el-button>
            </template>
          </el-table-column>
        </el-table>
      </template>
    </div>
  </div>
</template>

<script>
import PushApi from '@/api/push.js';
export default {
  data() {
    return {
      form: {
        status: 0
      }
    };
  },
  created() {
    this.getTableList();
  },
  methods: {
    getTableList() {
      let self = this;
      let Params = {};
      PushApi.getList(Params, true).then(data => {
        self.loading = false;
        self.catgory = data.data.catgory;
      }).catch(error => {});
    }
  }
};
</script>

